<!-- {if $member_from eq 'seller'}-->
		{include file=member.header.html}
        <!--{else}-->
       {include file=buyer.header.html}
        <!--{/if}-->
<script type="text/javascript">
$(function(){
    $('#password_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('validate_right').text('OK!');
        },
        onkeyup : false,
        rules : {
            old_password : {
                required : true,
                minlength  : 6,
                maxlength  : 20,
                checkPassword : true,
                remote   : {
                    url :'index.php?app=pay_password&act=ajaxCheckPayPassword',
                    type:'post',
                    data:{
                        pay_password : function(){
                            return $('#old_password').val();
                        }
                    }
                }
            },
            new_password : {
                required   : true,
                minlength  : 6,
                maxlength  : 20,
                checkPassword : true,
                nequalTo :'#old_password'
            },
            confirm_password : {
                required   : true,
                equalTo    : '#new_password',
                checkPassword : true
            }
        },
        messages : {
            old_password : {
                required  : '密码不能为空',
                minlength  : '密码长度应在6-20个字符之间',
                maxlength  : '密码长度不能超过20个字符',
                remote    : '旧支付密码不正确'
            },
            new_password  : {
                required   : '密码不能为空',
                minlength  : '密码长度应在6-20个字符之间',
                maxlength  : '密码长度不能超过20个字符',
                nequalTo   : '新支付密码不能与旧支付密码相同'
            },
            confirm_password : {
                required   : '密码不能为空',
                equalTo    : '两次输入的密码不相符'
            }
        }
    });
    
    $('#new_password').keyup(function(){
        userValidate.chkPWPower(this.value);        
    })
    
});
</script>
<div class="content f-cb">
  <!-- 当前位置 -->
  {include file=path.html}
  <!-- 内容左边栏 -->
  <!-- {if $member_from eq 'seller'}-->
  {include file=member.menu.html}
  <!--{else}-->
  {include file=member.menu.buyer.html}
  <!--{/if}-->
  <!-- 内容右边栏 -->
  <div class="right_content">
    <div class="t_1">修改支付密码</div>
  </div>
  <div class="con-receive-r b-radius safety_content">
    <div class="eject_con">
      <div class="add safety_modify_password">
        <form method="post" id="password_form" action="index.php?app=pay_password&act=edit_pay_password&from={$member_from}">
          <ul>
            <li>
              <h3>旧支付密码: </h3>
              <p>
                <input type="password" class="text width_normal b-radius" name="old_password" id="old_password" onpaste="return false" oncontextmenu="return false" oncopy="return false" oncut="return false" maxlength="20" />
              </p>
            </li>
            <li>
              <h3>新支付密码: </h3>
              <p>
                <input type="password" class="text width_normal b-radius" name="new_password" id="new_password" onpaste="return false"  oncontextmenu="return false" oncopy="return false" oncut="return false" maxlength="20"  />
              </p>
              <p class="level" id="level"><span class="low" id="low">弱</span><span class="middle" id="middle">中</span><span class="strong" id="strong">强</span><input type="hidden" name="password_level" id="password_level" value="1" /></p>
            </li>
            <li>
              <h3>确认新支付密码: </h3>
              <p>
                <input type="password" class="text width_normal b-radius" name="confirm_password" onpaste="return false" oncontextmenu="return false" oncopy="return false" oncut="return false" maxlength="20"  />
              </p>
            </li>
          </ul>
          <div class="submit">
            <input type="submit" class="subbtn b-radius" value="提交">
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<!-- 页脚 -->
{include file=footer.html} 